<?php
/**
 * User: @lose
 * Date: 2020-04-01
 * Time: 17:26
 */


use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/abTest',
    'namespace' => 'Frieza\\Modules\\AbTest\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/', 'IndexController@index');
    $router->get('/getStrategyForm', 'IndexController@getStrategyForm');
    $router->post('/getStrategy', 'IndexController@getStrategy');
    $router->get('/create', 'IndexController@create');
    $router->get('/{testId}/edit', 'IndexController@create');
    $router->post('/saveBasicInfo', 'IndexController@saveBasicInfo');
    $router->post('/saveGroupInfo', 'IndexController@saveGroupInfo');
//    $router->delete('/{testId}', 'IndexController@deleteInfo');
    $router->get('/{testId}', 'IndexController@create');
    $router->any('/release', 'IndexController@release');
    $router->post('/resetCache', 'IndexController@resetCache');
    $router->post('/deleteInfo', 'IndexController@deleteInfo');
});